package frontend;

import model.Dog;

public class DogForm {
    private String name;
    private String age;
    private String breed;
    private String description;
    private String id;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getAge() {
        return age;
    }
    public void setAge(String age) {
        this.age = age;
    }
    public String getBreed() {
        return breed;
    }
    public void setBreed(String breed) {
        this.breed = breed;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    
    public Dog convertToDog(){
	Dog d = new Dog();
	d.setDogNr(new Integer(id));
	d.setAgeInMonths(new Integer(age));
	d.setBreed(breed);
	d.setName(name);
	d.setDescription(description);
	return d;
    }
}
